﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DepartmentManagement.aspx.cs"
    Inherits="EnvironmentManagerSystem.DepartmentManagement.DepartmentManagement" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>部门管理</title>

    <script src="../Script/artDialog.js?skin=aero" type="text/javascript"></script>

    <script src="../Script/iframeTools.js" type="text/javascript"></script>

    <script src="../Script/ShowMinPage.js" type="text/javascript"></script>

    <link href="../Style/css.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table align="center" style="width: 100%;">
            <tr>
                <td align="center">
                    <input id="Button2" type="button" value="部门分配" runat="server" onclick="frm.show('DepartmentManagement/DepartmentManagementPermissionTo.aspx','部门分配',true,800,420)" />
                    <input id="Button1" type="button" value="添加部门" runat="server" onclick="frm.show('DepartmentManagement/DepartmentManagementAdd.aspx','添加部门',true,310,150)" />
                    <asp:Button runat="server" ID="btnReBind" Text="刷新" OnClick="btnReBind_Click" />
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:GridView ID="gvDepartment" runat="server" AllowPaging="True" AutoGenerateColumns="False"
                        DataKeyNames="ed_Id" Width="100%" OnPageIndexChanged="gvDepartment_PageIndexChanged"
                        OnPageIndexChanging="gvDepartment_PageIndexChanging" OnRowCancelingEdit="gvDepartment_RowCancelingEdit"
                        OnRowDeleting="gvDepartment_RowDeleting" OnRowEditing="gvDepartment_RowEditing"
                        OnRowUpdating="gvDepartment_RowUpdating" CellPadding="4" ForeColor="Black" GridLines="Vertical"
                        BackColor="White" BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px">
                        <FooterStyle BackColor="#CCCC99" />
                        <RowStyle BackColor="#F7F7DE" />
                        <Columns>
                            <asp:BoundField DataField="ed_Id" HeaderText="编号" ReadOnly="True" />
                            <asp:BoundField DataField="ed_Name" HeaderText="名称" />
                            <asp:TemplateField HeaderText="编辑">
                                <EditItemTemplate>
                                    <asp:LinkButton ID="LinkButton3" runat="server" CommandName="Update">更新</asp:LinkButton>
                                    &nbsp;&nbsp;
                                    <asp:LinkButton ID="LinkButton4" runat="server" CommandName="Cancel">取消</asp:LinkButton>
                                </EditItemTemplate>
                                <ItemTemplate>
                                    <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Edit">编辑</asp:LinkButton>
                                    &nbsp;&nbsp;&nbsp;
                                    <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete">删除</asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
